<?php

if (!class_exists("PST_PASSWORD")) {

    class PST_PASSWORD extends PST_PRESENTATION {

        public function __construct($settings) {
            parent::__construct($settings);
            
            if (empty($this->array['type'])) {
                $this->array['type'] = "password";
            }
            $this->array['value'] = "";
        }
        
        public function saveDbQuery() {
            if (isset($this->value)) {
                return AuthComponent::password($this->value);
            }
            return "";
        }
        
        

    }

}
